package com.studyweb.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 试卷分值详情实体类
 */
public class PaperScoreDetail {
    // 主键ID
    private Long id;
    
    // 试卷分值ID
    private Long paperScoreId;
    
    // 部分
    private String part;
    
    // 题型模块
    private String module;
    
    // 题量
    private Integer questionCount;
    
    // 分值(每题)
    private BigDecimal scorePerQuestion;
    
    // 总分数
    private BigDecimal totalScore;
    
    // 参考时间(分钟)
    private Integer referenceTime;
    
    // 创建时间
    private LocalDateTime createTime;
    
    // 更新时间
    private LocalDateTime updateTime;

    // 构造函数
    public PaperScoreDetail() {}

    public PaperScoreDetail(Long id, Long paperScoreId, String part, String module, 
                           Integer questionCount, BigDecimal scorePerQuestion, 
                           BigDecimal totalScore, Integer referenceTime, 
                           LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.paperScoreId = paperScoreId;
        this.part = part;
        this.module = module;
        this.questionCount = questionCount;
        this.scorePerQuestion = scorePerQuestion;
        this.totalScore = totalScore;
        this.referenceTime = referenceTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    // Getter和Setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPaperScoreId() {
        return paperScoreId;
    }

    public void setPaperScoreId(Long paperScoreId) {
        this.paperScoreId = paperScoreId;
    }

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public Integer getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(Integer questionCount) {
        this.questionCount = questionCount;
    }

    public BigDecimal getScorePerQuestion() {
        return scorePerQuestion;
    }

    public void setScorePerQuestion(BigDecimal scorePerQuestion) {
        this.scorePerQuestion = scorePerQuestion;
    }

    public BigDecimal getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(BigDecimal totalScore) {
        this.totalScore = totalScore;
    }

    public Integer getReferenceTime() {
        return referenceTime;
    }

    public void setReferenceTime(Integer referenceTime) {
        this.referenceTime = referenceTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "PaperScoreDetail{" +
                "id=" + id +
                ", paperScoreId=" + paperScoreId +
                ", part='" + part + '\'' +
                ", module='" + module + '\'' +
                ", questionCount=" + questionCount +
                ", scorePerQuestion=" + scorePerQuestion +
                ", totalScore=" + totalScore +
                ", referenceTime=" + referenceTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}